package android.team.app.ui;

import android.content.Intent;
import android.os.Bundle;
import android.team.app.R;
import android.team.app.ui.missatoll.PersonalInfomationActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class FirstActivity extends BaseActivity implements OnClickListener{
	
	private LinearLayout lnMissAToll;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.first_activity);
		loadUI();
		
		setHeader();
		
		loadSpecialUI();
	}
	
	private void loadSpecialUI() {
		// load them nhung thanh phan ma lop cha khong co
		
		lnMissAToll = (LinearLayout)findViewById(R.id.lnMissAToll);
		lnMissAToll.setOnClickListener(this);
		
	}

	private void setHeader(){
		
		//cho an hien title
		titleHeader.setVisibility(View.INVISIBLE);
		
		//cho an icon home
		btHome.setVisibility(View.INVISIBLE);
		btHome.setEnabled(false);
	}
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		super.onClick(v);
		
		switch (v.getId()) {
		case R.id.lnMissAToll:
			startActivity(new Intent(baseActivity, PersonalInfomationActivity.class));
			break;

		default:
			break;
		}
	}
	
}
